package org.linloong.core.exception;

import lombok.Data;

/**
 * @author liuzhen
 * @date 2025/3/4
 */

@Data
public class BusinessException extends Exception {

    private Integer code;

    public BusinessException() {
        super("系统异常");
        this.code = 500;
    }

    public BusinessException(String msg) {
        super(msg);
        this.code = 500;
    }

    public BusinessException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }
}
